package com.onlineMIS.ORM.entity.headQ.finance;

import com.onlineMIS.common.Common_util;

public class FinanceBillCustomerVO {

	private int id;
	private String custName;
	private String typeHQS;
	private String creatorHqName;
	private String billDate;
	private String createDate;
	private String updateDate;
	private String invoiceTotal;
	private Integer status;
	private String statusS;
	private String comment;
    private double details;
	
		
	public FinanceBillCustomerVO() {
	
	}

	public FinanceBillCustomerVO(FinanceBill financeBill) {
		this.id = financeBill.getId();
		this.custName = financeBill.getCust().getName();
		this.typeHQS = financeBill.getTypeHQS();
		this.creatorHqName = financeBill.getCreatorHq().getName();
		this.billDate = Common_util.dateFormat.format(financeBill.getBillDate());
		this.createDate = Common_util.dateFormat_f.format(financeBill.getCreateDate());
		if (financeBill.getUpdateDate() !=null) {
			this.updateDate = Common_util.dateFormat_f.format(financeBill.getUpdateDate());
		}		
		this.invoiceTotal = Double.toString(financeBill.getInvoiceTotal());
		this.status = financeBill.getStatus();
		this.statusS = financeBill.getStatusS();
		this.comment = financeBill.getComment();
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getCustName() {
		return custName;
	}

	public void setCustName(String custName) {
		this.custName = custName;
	}

	public String getTypeHQS() {
		return typeHQS;
	}

	public void setTypeHQS(String typeHQS) {
		this.typeHQS = typeHQS;
	}

	public String getCreatorHqName() {
		return creatorHqName;
	}

	public void setCreatorHqName(String creatorHqName) {
		this.creatorHqName = creatorHqName;
	}

	public String getBillDate() {
		return billDate;
	}

	public void setBillDate(String billDate) {
		this.billDate = billDate;
	}

	public String getCreateDate() {
		return createDate;
	}

	public void setCreateDate(String createDate) {
		this.createDate = createDate;
	}

	public String getUpdateDate() {
		return updateDate;
	}

	public void setUpdateDate(String updateDate) {
		this.updateDate = updateDate;
	}

	public String getInvoiceTotal() {
		return invoiceTotal;
	}

	public void setInvoiceTotal(String invoiceTotal) {
		this.invoiceTotal = invoiceTotal;
	}

	public String getStatusS() {
		return statusS;
	}

	public void setStatusS(String statusS) {
		this.statusS = statusS;
	}

	public String getComment() {
		return comment;
	}

	public void setComment(String comment) {
		this.comment = comment;
	}

	public double getDetails() {
		return details;
	}

	public void setDetails(double details) {
		this.details = details;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}
	
}
